import {request, config} from 'utils'
import * as commonService from "utils/services";

const {api} = config;
const {transferToBalanceRecord} = api;
export async function query(params = {}) {
  params.apiBaseUrl = `${transferToBalanceRecord}/transfer`;
  return commonService.commonQuery(params);
}
export async function detail(id) {
  const url = `${transferToBalanceRecord}/transferdetail/${id}`
  return request({ url: url, method: 'GET' })
}

export async function approve(params) {
  const url = `${transferToBalanceRecord}/transferToBalance/approve`
  return request({ url: url, method: 'POST', data: params })
}
export async function deny(params) {
  const url = `${transferToBalanceRecord}/transferToBalance/deny`
  return request({ url: url, method: 'POST', data: params})
}

